package com.example.database_1;
import android.content.ContentValues;
import android.database.sqlite.SQLiteDatabase;
import android.widget.EditText;

public class DataBase  {
	String name, tel, email;
	DBHelper dbHelper;

	ContentValues cv = new ContentValues();
	SQLiteDatabase db = dbHelper.getWritableDatabase();
	//final String LOG_TAG = "myLogs";
	public void WriteToDB(EditText etName, EditText etTel, EditText etEmail){
		
		name = etName.getText().toString();
	    email = etEmail.getText().toString();
	    tel = etTel.getText().toString();
		cv.put("name", name);
	    cv.put("email", email);
	    cv.put("tel", tel);
	    //long rowID = db.insert("mytable", null, cv);
	    //Log.d(LOG_TAG, "row inserted, ID = " + rowID);

	}
	public void ReadFromDB(){
	}
	public void DeleteFromDB() {
	}
	public void EditInDB(){
	}
}

	


